package cn.model;

import lombok.AccessLevel;
import lombok.Setter;
import lombok.Data;
import lombok.ToString;

/**
 * Created by wushifeng on 2017/4/12.
 * https://github.com/rzwitserloot/lombok
 * https://projectlombok.org/features/Data.html
 * https://projectlombok.org/features/index.html
 */
@Data
public class LomBokM {
    private final String name;
    @Setter(AccessLevel.PACKAGE)
    private int age;
    private double score;
    private String[] tags;

    @ToString(includeFieldNames = true)
    @Data(staticConstructor = "of")
    public static class Exercise<T> {
        private final String name;
        private final T value;
    }
}
